{if $add_list}
{foreach $add_list as $k=>$v}
{$property_list = goods_helper::get_sku_property_value($v.sku_id, 1)}
{$property_list = goods_helper::get_sku_property_value($v.sku_id, 1)}
<li class="clearfix {if $v.stock <1}disabled{/if}" data-sku_id="{$v.sku_id}" data-stock="{$v.stock}" data-is_promotion="{$v.is_promotion}" data-goods_id="{$v.goods_id}">
<div class="cart-top">
  <span class="img-box">
    <img src="{_image($v.goods_cover, 'middle')}" width="131">
  </span>
  <div class="infor">
    <h3>{if $v.is_promotion > 0}<i class="red-icon">加购价</i>{/if}<a href="{AnUrl("goods/{$v.goods_id}")}">{$v.goods_title} {$property_list}</a></h3>
    {if $v.gift_detail}
    {foreach $v.gift_detail as $g_k=>$g_v}
    <p class="price gift" data-gift_num="{$g_v.gift_num}">赠品：{$g_v.goods_title} x <em>{$g_v.goods_num}</em></p>
    {/foreach}
    {/if}
    <p class="price"><span>售价：{number_format($v.goods_price, 2)}元</span><span>合计：<em class="js_currCount">{if $v.is_gift > 0}0.00{else}{number_format($v.goods_price*$v.goods_num, 2)}{/if}</em>元</span></p>
    <div class="add-sub clearfix js_goodsNumDiv">
      {if $v.stock > 0}
        <a href="javascript:;" class="sub {if $v.goods_num == 1}sub-disabled{/if} js_goodsNumSub"></a>
        <span class="txt"><input type="text" value="{if $v.is_promotion > 0}1{else}{$v.goods_num}{/if}" class="txt1 js_cartGoodsNum" {if $v.is_promotion > 0}readonly{/if}/></span>
        <a href="javascript:;" class="add js_goodsNumAdd {if $v.is_promotion > 0}sub-disabled{/if}"></a>
      {else}
        <span class="txt">暂无库存</span>
      {/if}
    </div>
  </div>
  {if $v.is_gift == 0}<a href="javascript:;" class="del js_cartDelete"></a>{/if}
  </div>
  {if $v.goods_notice}
    <p class="price notice"><span>{$v.goods_notice}</span></p>
  {/if}
</li>
{/foreach}
{/if}